package com.xuzz.xrpc.common;

/**
 * @description:
 * @author: xuzz
 * @create: 2020-02-21 21:27
 */
public class PropertyConfig {
    /**
     * 服务名称
     * xrpc.server.name=string
     */
    String serverName;
    /**
     * 服务地址和端口
     * xrpc.server.address=ip:port
     */
    String serverAddress;

    /**
     * 注册中心类型
     */
    String registryProtocol;
    /**
     * 注册中心地址
     * xrpc.registry.address=ip:port
     */
    String registryAddress;

    /**
     * 负载策略
     * xrpc.cluster.loadbalance
     */
    String loadBalance;

    public String getServerName() {
        return serverName;
    }

    public void setServerName(String serverName) {
        this.serverName = serverName;
    }

    public String getServerAddress() {
        return serverAddress;
    }

    public void setServerAddress(String serverAddress) {
        this.serverAddress = serverAddress;
    }

    public String getRegistryAddress() {
        return registryAddress;
    }

    public void setRegistryAddress(String registryAddress) {
        this.registryAddress = registryAddress;
    }


    public String getLoadBalance() {
        return loadBalance;
    }

    public void setLoadBalance(String loadBalance) {
        this.loadBalance = loadBalance;
    }

    public String getRegistryProtocol() {
        return registryProtocol;
    }

    public void setRegistryProtocol(String registryProtocol) {
        this.registryProtocol = registryProtocol;
    }

    @Override
    public String toString() {
        return "PropertyConfig{" +
                "serverName='" + serverName + '\'' +
                ", serverAddress='" + serverAddress + '\'' +
                ", registryProtocol='" + registryProtocol + '\'' +
                ", registryAddress='" + registryAddress + '\'' +
                ", loadBalance='" + loadBalance + '\'' +
                '}';
    }
}
